package com.songmao.cleartransaction.db;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author Remy
 * @description :
 * @date 2020-04-29 16:10
 */
@Mapper
@Component
public interface DBMapper {

    @Select("select * from maker_quote where name='BCH/UST'")
    List<MakerQuote> getAll();

    @Delete("delete from maker_quote ")
    void deleteAll();

    @Select("select * from  deal where key_order_id=#{keyOrderId} and filled_volume is not null ")
    List<Map<String, Object>> getDeal(String keyOrderId);
}
